package com.ybchen.controller;

import com.ybchen.rpc.HelloClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: 陈彦斌
 * @create: 2025-10-14 17:18
 */
@RestController
public class TestController {

    @Autowired
    private HelloClient helloClient;

    @GetMapping("/test")
    public String testFeign(@RequestParam String name) {
        return helloClient.sayHi(name);
    }
}